import * as React from "react";
import AutosizeInput from "react-input-autosize";
import "./index.scss";
export default props => {
  const key = props["data-key"];
  const { node } = props;
  const labelText = node.data.get("label");
  const placeholder = node.data.get("placeholder")
  return (
    <div data-key={key} className="formitem">
      <label>{labelText || "labelText"}</label>
      <AutosizeInput placeholder={placeholder} />
    </div>
  );
};
